<?php
header("content-type:text/html;charset=utf8");
$name="梓梓梓梓";
$pwd="123456";
$token="api";
//$token=md5($token);
$time=time();
$random=rand(1000,9999);
$arr=array($time,$token,$random);
sort($arr,SORT_STRING);
$arr=implode($arr,',');
$mathes=SHA1($arr);
$url="http://www.daytest.com/week1/server.php?name=$name&token=$token&time=$time&random=$random&mathes=$mathes&pwd=$pwd";
//echo $url;
$data=file_get_contents($url);
$data=json_decode($data,true);



